
package com.kweative.model.exception;

import com.kweative.model.Index;
import com.kweative.model.column.Column;

/**
 *
 * @author henrik
 */
public class NotAddedToTableException extends StructureException {

    public NotAddedToTableException(Index index) {
        super(String.format("Index '%s' has not been added to table yet. Operation invalid!",index.getName()));
    }
    public NotAddedToTableException(Column field) {
        super(String.format("Field '%s' has not been added to table yet. Operation invalid!",field.getName()));
    }

}
